package mybatis.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import mybatis.mapper.BaseMapper;
import mybatis.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author: Atosw
 * @date: 2024/11/10
 * @version: 1.0
 * @description:
 */
public class BaseServiceImpl<K extends BaseMapper<T>, T> extends ServiceImpl<K, T> implements BaseService<T> {

    @Autowired
    protected K baseMapper;

    /**
     * 分页条件查询
     *
     * @param query
     * @return
     */
    @Override
    public IPage<T> pageByQuery(IPage<T> query) {
        return baseMapper.pageByQuery(query);
    }

}
